﻿using System.IO;
using BITS.PreCompiler.CSharp.Syntax;

namespace BITS.PreCompiler.CSharp.Extensions
{
    public static class FileInfoExtension
    {
        public static Module GetModule(this FileInfo @this)
        {
            return new Module(@this.Name)
            {
                @this.OpenText().ReadToEnd()
            };
        }
    }
}
